const Step1 = React.createClass({

	getInitialState() {
		let idx = this.props.site.findIndex(x => x.name === 'enroll.spec');


		return {
     		content: idx >= 0 ? this.props.site[idx].content : '',
     	}
	},

	render () {
		const name = this.props.nodeName;

		// console.log(this.state);

		return(
			<div className={name} >
				<h2 className="step-title">{this.props.title}</h2>
				<div 
					dangerouslySetInnerHTML={{__html: this.state.content}}>
				</div>
			</div>
		)
	}
});

export default Step1